﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="Statistics.ascx.cs"
    Inherits="Framework.Module.Logging.Admin.Statistics" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>
<%@ Register Assembly="RadChart.Net2" Namespace="Telerik.Charting" TagPrefix="radC" %>

<%@ Register Src="UserControls/SelecteDate.ascx" TagName="SelecteDate" TagPrefix="uc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table cellspacing="0" cellpadding="0" width="700" border="0">
    <tr>
        <td align="right" colspan="3">
        </td>
    </tr>
    <tr valign="top">
        <td class="SidePanel" width="400">
            <table cellspacing="0" cellpadding="3" width="100%" border="0">
                <tr>
                    <td width="20%">
                        <b>Thống kê </b>
                    </td>
                    <td>
                        <asp:DropDownList ID="dropKeys" Width="272px" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="dropKeys_SelectedIndexChanged">
                        </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                            ErrorMessage="*" ControlToValidate="dropKeys" Display="Dynamic"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="height: 66px">
                        <b>Từ ngày</b></td>
                    <td style="height: 66px">
                        &nbsp;<uc1:SelecteDate ID="SelecteDate3" runat="server"></uc1:SelecteDate>
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Đến ngày</b></td>
                    <td>
                        &nbsp;<uc1:SelecteDate ID="SelecteDate4" runat="server"></uc1:SelecteDate>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <br/>
                        <asp:Button ID="cmdRun" runat="server" Text="Thống kê" OnClick="cmdRun_Click"></asp:Button></td>
                </tr>
            </table>
        </td>
        <td width="5">
        </td>
        <td class="Area">
            <table cellspacing="0" cellpadding="1" width="100%" border="0">
                <tr>
                    <td>
                        Vị trí
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ListBox ID="lstPos" Width="100%" runat="server" Height="100" SelectionMode="Multiple">
                        </asp:ListBox></td>
                </tr>
            </table>
            <p>
                &nbsp;</p>
        </td>
    </tr>
    <tr>
        <td class="SidePanel" width="400">
            <font color="#0000cc">Thời điểm nhiều người truy cập nhất:</font>&nbsp;<asp:Label
                ID="lbmax" ForeColor="#660066" runat="server"></asp:Label>
        </td>
        <td width="5">
        </td>
        <td class="Area">
            <p>
                <strong><font color="#6600ff"><font color="#003300">Tổng số nguời truy&nbsp;cập :</font>
                </font></strong>
                <asp:Label ID="lblsum" runat="server" ForeColor="Transparent" Font-Bold="True">Label</asp:Label></p>
            <strong><font color="#6600ff"><font color="#003300">Số nguời đang truy&nbsp;cập :</font>
            </font></strong>
            <asp:Label ID="lbonline" runat="server"></asp:Label>&nbsp;Người
        </td>
    </tr>
</table>
<br/>
<asp:DataGrid ID="dtgStatistics" Width="660" runat="server" AutoGenerateColumns="False"
    CellPadding="3" OnItemDataBound="dtgStatistics_ItemDataBound">
    <AlternatingItemStyle CssClass="DarkRow"></AlternatingItemStyle>
    <ItemStyle CssClass="LightRow"></ItemStyle>
    <HeaderStyle Font-Bold="True" CssClass="HeaderRow"></HeaderStyle>
    <Columns>
        <asp:BoundColumn DataField="Today" HeaderText="Ng&#224;y">
            <HeaderStyle Width="80px"></HeaderStyle>
        </asp:BoundColumn>
        <asp:BoundColumn HeaderText="Mục">
            <HeaderStyle Width="150px"></HeaderStyle>
        </asp:BoundColumn>
        <asp:TemplateColumn HeaderText="Lượt người truy cập">
            <ItemTemplate>
                <table cellspacing="0" cellpadding="0" width="400px" border="0">
                    <tr>
                        <td style="padding-left: 0px; padding-right: 0px; width: 360px">
                            <table border="0">
                                <tr>
                                    <td id="td_sum" style="background-color: #0033cc; height: 6px" runat="server">
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="width: 40px">
                        </td>
                        <td>
                            <asp:Label ID="lblValue" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CounterValue") %>'
                                ForeColor="Red">
                            </asp:Label></td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
</asp:DataGrid>&nbsp;<br />
<span style="padding-left: 30px; padding-top: 10px; padding-bottom: 10px">
    <asp:Label ID="lbstatisticfor" runat="server" ForeColor="blue"></asp:Label>
</span>
<br /><br />
<radC:RadChart ID="RadChart1" runat="server" TempImagesFolder="~/Modules/Logging/Uploads" IntelligentLabelsEnabled="True" SeriesPalette="Colorful">
<PlotArea IntelligentLabelsEnabled="True">
<DataTable>
<Appearance RenderType="PlotAreaRelative" TextVerticalAlign="Middle" TextHorizontalAlign="Center"></Appearance>
</DataTable>

<YAxis Step="10" MaxValue="100">
    <Appearance Color="226, 218, 202" MajorTick-Color="226, 218, 202" MinorTick-Color="226, 218, 202">
        <TextAppearance TextProperties-Color="112, 93, 56">
        </TextAppearance>
        <MajorGridLines Color="231, 225, 212" />
        <MinorGridLines Color="231, 225, 212" />
    </Appearance>
    <AxisLabel>
        <TextBlock>
            <Appearance TextProperties-Color="112, 93, 56">
            </Appearance>
        </TextBlock>
    </AxisLabel>
</YAxis>

<YAxis2 MaxValue="100" Step="10"></YAxis2>

<XAxis MinValue="1">
    <Appearance Color="226, 218, 202" MajorTick-Color="216, 207, 190">
        <TextAppearance TextProperties-Color="112, 93, 56">
        </TextAppearance>
        <MajorGridLines Color="226, 218, 202" />
    </Appearance>
    <AxisLabel>
        <TextBlock>
            <Appearance TextProperties-Color="112, 93, 56">
            </Appearance>
        </TextBlock>
    </AxisLabel>
</XAxis>
    <EmptySeriesMessage Visible="True">
    </EmptySeriesMessage>
    <Appearance Border-Color="226, 218, 202" Dimensions-Margins="18%, 23%, 12%, 10%" SeriesPalette="Light">
        <FillStyle MainColor="254, 255, 228" SecondColor="Transparent">
        </FillStyle>
    </Appearance>
</PlotArea>
    <ChartTitle>
        <Appearance Border-Color="">
            <FillStyle MainColor="">
            </FillStyle>
        </Appearance>
        <TextBlock>
            <Appearance TextProperties-Color="77, 153, 4">
            </Appearance>
        </TextBlock>
    </ChartTitle>
    <Appearance Border-Color="203, 225, 169">
        <FillStyle MainColor="235, 249, 213">
        </FillStyle>
    </Appearance>
    <Legend>
        <Appearance Border-Color="225, 217, 201" Corners="Round, Round, Round, Round, 6">
            <ItemTextAppearance TextProperties-Color="113, 94, 57">
            </ItemTextAppearance>
        </Appearance>
    </Legend>
</radC:RadChart>
<p>
    &nbsp;</p>
<asp:HyperLink ID="hplAdvance" Visible="false" runat="server">Thống kê theo 24h</asp:HyperLink>
<p>
    </p>
</ContentTemplate>
</asp:UpdatePanel>

